package com.eastedu.entity;

import com.eastedu.entity.jdbc.BaseTreeEntity;
import jakarta.persistence.Column;
import jakarta.persistence.MappedSuperclass;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * The type Base tree with root entity.
 *
 * @author luozhenzhong
 */
@Getter
@Setter
@ToString
@RequiredArgsConstructor
@MappedSuperclass
public class BaseTreeWithRootEntity extends BaseTreeEntity<BaseTreeWithRootEntity> implements TreeWithRootEntity {
    /**
     * 树结构根节点ID
     */
    @Column(name = "root_id", nullable = false, columnDefinition = "bigint(11) COMMENT '树结构根节点ID'")
    private Long rootId;
}
